<!DOCTYPE html>
<html>
<head>
    
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    
    <title>{$title} {:C('WEB_SITE_TITLE')}</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    
    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="__CSS__/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__CSS__/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__CSS__/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__CSS__/animate.min.css" rel="stylesheet">
    <link href="__CSS__/style.min862f.css?v=4.1.0" rel="stylesheet">
    
    <script src="__JS__/jquery.min.js?v=2.1.4"></script>

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>{$title}</h5>
        </div>
        <div class="ibox-content">
            <div class="row row-lg">
    
                <div class="col-sm-12">
                    <include file="Common/alert"/>
    
                    <div class="clearfix" style="width:100%;">
                        <div class="bars pull-left">
                            <div class="btn-group hidden-xs" id="exampleTableEventsToolbar" role="group">
                                <button type="button" class="btn btn-outline btn-default" href="{:U('Article/index')}" style="padding-bottom: 8px;padding-top: 8px;">
                                    <i class="glyphicon glyphicon-chevron-left" aria-hidden="true"></i>
                                </button>
                                <button type="button" class="btn btn-outline btn-default" href="{:U('Article/edit')}" style="padding-bottom: 8px;padding-top: 8px;">
                                    <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
                                </button>
                                <button class="btn btn-default btn-outline" type="button" name="refresh" title="刷新" href="__SELF__" style="padding-bottom: 8px;padding-top: 8px;">
                                    <i class="glyphicon glyphicon-repeat"></i>
                                </button>
                                <button type="button" class="btn btn-outline btn-default confirm" href="{:U('Article/delete',['id'=>$info['id']])}" style="padding-bottom: 8px;padding-top: 8px;">
                                    <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
                                </button>
                            </div>
                        </div>
                    </div>
    
    
                    <form method="post" action="__SELF__" class="form-horizontal">
        
                        <div class="hr-line-dashed"></div>
        
                        <div class="form-group">
                            <label class="col-sm-2 control-label">推荐</label>
                            <div class="col-sm-10">
                                <volist name=":C('DOCUMENT_POSITION')" id="position">
                                    <label class="checkbox-inline">
                                        <input type="checkbox" value="{$key}" name="position[]" style="height: 25px;" <if condition="check_position($info['position'],$key)" >checked="checked"</if>>
                                        {$position}
                                    </label>
                                </volist>
                                <span class="help-block m-b-none">设置推荐位</span>
                            </div>
                        </div>
        
                        <div class="hr-line-dashed"></div>
        
                        <div class="form-group">
                            <label class="col-sm-2 control-label">标题</label>
                            <div class="col-sm-10">
                                <input name="title" type="text" class="form-control" value="{$info.title|default=''}">
                                <span class="help-block m-b-none">文章标题</span>
                            </div>
                        </div>
        
                        <div class="hr-line-dashed"></div>
        
                        <div class="form-group">
                            <label class="col-sm-2 control-label">简介</label>
                            <div class="col-sm-10">
                                <textarea name="description" class="form-control" rows="4">{$info.description|default=''}</textarea>
                                <span class="help-block m-b-none">填写政策信息的简介</span>
                            </div>
                        </div>
        
                        <div class="hr-line-dashed"></div>
        
                        <div class="form-group">
                            <label class="col-sm-2 control-label">内容</label>
                            <div class="col-sm-10">
                                <textarea id="content" name="content" style="width:100%;height:240px;">{$info['content']}</textarea>
                                <!--:hook('adminArticleEdit', array('name'=>$field['name'],'value'=>$data[$field['name']]))}-->
                                <link href="__STATIC__/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
                                <script type="text/javascript" src="__STATIC__/umeditor/third-party/template.min.js"></script>
                                <!-- 配置文件 -->
                                <script type="text/javascript" src="__STATIC__/umeditor/umeditor.config.js"></script>
                                <!-- 编辑器源码文件 -->
                                <script type="text/javascript" src="__STATIC__/umeditor/umeditor.min.js"></script>
                                <!--<script type="text/javascript" src="__STATIC__/umeditor/lang/zh-cn/zh-cn.js"></script>-->
                                <!-- 实例化编辑器 -->
                                <script type="text/javascript">
                                    //实例化编辑器
                                    var um = UM.getEditor('content',{
                                        imageUrl:"{:U('File/editor')}",
                                        imagePath:""
                                    });
                                </script>
                                <span class="help-block m-b-none">填写培训机构的详情</span>
                            </div>
                        </div>
        
                        <div class="hr-line-dashed"></div>
        
                        <div class="form-group">
                            <label class="col-sm-2 control-label">状态
                                <!--<br><small class="text-navy">自定义样式</small>-->
                            </label>
            
                            <div class="col-sm-10">
                                <div class="radio i-checks">
                                    <label>
                                        <input type="radio" value="{$info.stauts}" name="status" <eq name="info.status" value="1">checked="checked"</eq>> <i></i> 正常
                                    </label>
                                    <label>
                                        <input type="radio" value="{$info.stauts}" name="status" <eq name="info.status" value="0">checked="checked"</eq>> <i></i> 禁用
                                    </label>
                                </div>
                            </div>
                        </div>
        
                        <div class="hr-line-dashed"></div>
        
        
                        <input type="hidden" name="id" value="{$info.id|default=''}"/>
        
        
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <button class="btn btn-white" type="submit" onclick="window.history.go(-1);">取消</button>
                            </div>
                        </div>
                    </form>
                </div>
                </div>
    
            </div>
        </div>
    </div>
    <!-- End Panel Other -->
</div>
<include file="Common/footer"/>
<script src="__JS__/content.min.js?v=1.0.0"></script>
<script src="__JS__/plugins/iCheck/icheck.min.js"></script>
<script src="__JS__/plugins/summernote/summernote.min.js"></script>
<script src="__JS__/plugins/summernote/summernote-zh-CN.js"></script>

<script>
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
    $(document).ready(function(){$(".summernote").summernote({lang:"zh-CN"})});var edit=function(){$("#eg").addClass("no-padding");$(".click2edit").summernote({lang:"zh-CN",focus:true})};var save=function(){$("#eg").removeClass("no-padding");var aHTML=$(".click2edit").code();$(".click2edit").destroy()};
</script>
</body>
</html>
